﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using GalaSoft.MvvmLight;

namespace ISRecord.View.ViewsModel
{
    public  class CommandViewModel:ViewModelBase
    {
        public CommandViewModel(string displayName, ICommand command)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }
            DisplayName = displayName;
            Command = command;
        }
        public ICommand Command
        { get; private set; }
        public virtual bool ModelHasChanges
        {
            get { return false; }
        }
        public virtual string DisplayName { get; protected set; }
    }
}
